package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.Picture;
import cn.tedu.csmall.product.pojo.entity.Sku;
import cn.tedu.csmall.product.pojo.vo.SkuListVO;
import cn.tedu.csmall.product.pojo.vo.SkuStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName: SkuMapper
 * Package: cn.tedu.csmall.product.mapper
 * Description
 *
 * @Author: 大傻
 * @Create:2022/11/26
 */
@Repository
public interface SkuMapper {
    int insert(Sku sku);
    int insertBatch(List<Sku> skus);

    int deleteById(Long id);
    int  deleteByIds(Long[] ids);
    int update(Sku sku);

    int count();
    SkuStandardVO getStandardById(Long id);
    List<SkuListVO> list ();
}
